<!doctype html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<title>{$theme['title']}</title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<link rel="stylesheet" type="text/css" href="{$_G['URL']['JIAMENG_CSS']}css/mobile_new.css?test=2">
<link rel="stylesheet" type="text/css" href="{$_G['URL']['JIAMENG_CSS']}css/lama_study.css?test=4" />
<link rel="stylesheet" type="text/css" href="{$_G['URL']['JIAMENG_CSS']}css/basic.css?time1816">
<link rel="stylesheet" type="text/css" href="{$_G['URL']['JIAMENG_CSS']}css/swiper.min.css">
<link rel="stylesheet" type="text/css" href="{$_G['URL']['JIAMENG_CSS']}css/mobile_color.css?time=0628">

<link rel="stylesheet" type="text/css" href="{$_G['URL']['APP_CSS']}dsdialog.css">
<link rel="stylesheet" type="text/css" href="{$_G['URL']['APP_CSS']}center.css">

<script type="text/javascript" src="{$_G['URL']['APP_JS']}jquery.min.js"></script>
<script type="text/javascript" src="{$_G['URL']['APP_JS']}util.js"></script>
<script type="text/javascript" src="{$_G['URL']['APP_JS']}yx.mui.js?v=20160906"></script>
<script type="text/javascript" src="{$_G['URL']['APP_JS']}common.js?v=20160906"></script>
<script type="text/javascript" src="{$_G['URL']['YIYE_CSS']}js/dsdialog.js"></script>
<style type="text/css">
  img{
     pointer-events:none;
  }
</style>
</head>
<body style="padding-bottom: 3.625rem;">

<input type="hidden" id="status" value="{$theme['status']}">
<input type="hidden" id="themeid" value="{$theme['id']}">
<div class="content">
  {if ($theme['endtime']+$endday) < TIMESTAMP && $theme['yixuanbanquan'] != '1' && $theme['USERJISHU'] == '' }
      <a href="http://ad.yixuan.net/"><img src="{$_G['URL']['APP_IMAGE']}yixuan.jpg" alt="" class="lazy"></a>
    {/if}
    <img class="lazy" src="{php echo tomedia($config['headlogo']);}" alt="">
</div>


<!--参与人-->
<div class="content user_list_bg" style="{php echo empty($config['jmnumimg'])?'background-color: '.$config['formcolorhead']:'background: url('.$config['jmnumimg'].')';};">
    <img src="{$_G['URL']['JIAMENG_CSS']}img/num_left.png" alt="">

        {loop $numarray $row}
            <span>{$row}</span>
        {/loop}
 
    <img src="{$_G['URL']['JIAMENG_CSS']}img/num_right.png" alt="">
</div>

<div class="content baoming_bg">
    <div class="content" style="position: relative;  height:314px;overflow: hidden;">
    <ul class="content show_othergroup" id="get_clone" style=" height:315px;">
        {loop $fanslist  $row}
        <li class="show_othergroup_lit">
            <div class="other_head">
                <img src="{$row['avatar']}" alt="">
            </div>
            <div class="other_buy_left">
                <p>{$row['username']}</p>
                <p class="other_buy_text12">{$row['shengshi']}</p>
            </div>
            <div class="other_buy">
                <div class="other_buy_right">
                    <a href="javascript:;">{$row['statustext']}</a>
                </div>
            </div>
        </li>
        {/loop}
    </ul>
    </div>
    </div>


{if $config['isrecent']==1}
{include file='yxpdd/pdd_ing2'}
{/if}

{if $config['iscomm']==1  && $system['fenxiao07']==1}
  {include file='yxpdd/yaoyiyao'}
{/if}

{if $config['iscommshow']==1}
{include file='base/rank'}
{/if}
<div class="content baixian" id="centerimgs"></div>

{if $config['isicon']>0}
<div class="content text_center star" id="light" style="background:{$config['starbgcolor']}">
</div>
{/if}

{if $config['iscommshow']==2}
{include file='base/rank'}
{/if}

<div class="content baixian" id="content">
</div>


{if $config['iscommshow']==3}
{include file='base/rank'}
{/if}
<div class="round_star" style="width: 60px; height: 60px; display: none; right: 10px !important; left: inherit !important;">
    <a href="javascript:;"><img src="{$_G['URL']['APP_IMAGE']}begin1.png" alt="" width="60" height="60"></a>
</div>


{if $config['isreply'] == 1}

{/if}

{if $theme['yixuanbanquan'] != '1'}
<div class="metro_container content" style="text-align:center;padding:5px 0px 40px";>
<a style="font-size:12px;" href="{php echo empty($theme['USERURL'])?$system['s']['yixuanurl']:$theme['USERURL'];}">{php echo empty($theme['USERJISHU'])?$system['s']['yixuanjishu']:html_entity_decode($theme['USERJISHU'], ENT_QUOTES);}</a>
</div>
{/if}




<style type="text/css">
    .color_bottom a {
        flex: auto;
        -webkit-flex: auto;
        display: block;
        height: 3.3rem;
        line-height: 3.3rem;
        color: #fff;
        text-align: center;
        text-decoration: none;
        font-size: 1.125rem;
    }
    {if $config['primeprice']!='0.00' && $config['groupprice']!='0.00'}
        .color_bottom a {
            font-size: 0.9rem;
        }
    {/if}
</style>
<!--底部按钮-->
<div class="color_bottom" style="height: 3.3rem">
    {if !empty($config['jmkefuimg'])}
        <a href="javascript:;" onclick="showkfewm()" ><img src="{$config['jmkefuimg']}?1" alt=""></a>
    {/if}

   <!--  <a style="width: 100%; background: {$config['formcolorhead']}; font-weight: bold;" href="javascript:;" onclick="showdopay()">{$config['jmjmzhifuwenzi']}</a> -->

        {if empty($themyrecord)}
        {if $config['primeprice']!='0.00'}
    <a style="width: 100%; background: {$config['formcolorcenter']}; font-weight: bold;" href="javascript:;" onclick="showdopay(3)">{$config['jmdibuwenzi2']}</a>
        {/if}
        {if $config['groupprice']!='0.00'}
    <a style="width: 100%; background: {$config['formcolortop']}; font-weight: bold;" href="javascript:;" onclick="showdopay(1)">{$config['jmdibuwenzi']}</a>
         {/if}
        {elseif $themyrecord['type']==0}
    
    <a style="width: 100%; background: {$config['formcolortop']}; font-weight: bold; line-height: 20px; padding-top: 6px;" href="javascript:;" >{$config['jmlablesuccess']}<br><em style="font-size: 14px;">{$shengshi}</em></a>
        {else}
    <a style="width: 100%; background: {$config['formcolorcenter']}; font-weight: bold; line-height: 20px; padding-top: 6px;" href="javascript:;" >{$config['jmlablesuccess2']}<br><em style="font-size: 14px;">{$shengshi}</em></a>
        {if $config['groupprice']!='0.00'}
    <a style="width: 100%; background: {$config['formcolortop']}; font-weight: bold;" href="javascript:;" onclick="showdopay(1)">{$config['jmdibuwenzi']}</a>
         {/if}
        {/if}
        

</div>

<!--注册板块-->
<div class="color_login_bg" onclick="close_login()"></div>
<div class="color_login_main">
    <div class="color_login_top content">
        {if !empty($config['jmlogo'])}<img src="{$config['jmlogo']}" alt="">{/if}
        <div>
            <em>&#24050;&#26377;{$totalsum}家加盟抢定</em><br />
            <span>浏览量：{$scannum}</span>
        </div>
    </div> 
    <div class="levelgroup_check content" style="display: none;">
        <label style="{if empty($showrecord) || $nowgroupneednum==0}display: none;{/if}">
            <input type="radio" name="check_type" id="check_type_2" value="2" />
            <i>加入{$showrecord['username']}的&#22242<em>（此&#22242仅剩{$nowgroupneednum}个名额）</em></i>
        </label>
        {if $config['primeprice']!='0.00'}
        <label>
            <input type="radio" name="check_type" id="check_type_3" value="3">
            <i>{if empty($config['dandutips'])}{$formtextleft}￥{$config['primeprice']}{else}{$config['dandutips']}{/if}</i>
        </label>
        {/if}
        <label>
            <input type="radio" name="check_type" id="check_type_1" value="1">
            <i>{if empty($config['pintuantips'])}&#x62fc;&#x56E2;•{$config['maxcountall']}人&#25340&#22242价￥{$config['groupprice']}{else}{$config['pintuantips']}{/if}</i>
        </label>
        {if $config['groupprice2']!='0.00'}
        <label>
            <input type="radio" name="check_type" id="check_type_4" value="4">
            <i>{if empty($config['pintuantips2'])}&#x62fc;&#x56E2;•{$config['maxcountall2']}人&#25340&#22242价￥{$config['groupprice2']}{else}{$config['pintuantips2']}{/if}</i>
        </label>
        {/if}
    </div> 
    <div class="color_register content">
        <ul class="content">

            {if $config['shopstype'] == 0 }
                {if !empty($config['shops'])}
                    {if !empty($config['options'])}
                    <li style="text-align: center;">
                    <select placeholder="请选择{$config['shops']}" id="shoptitle" name="shoptitle" style="padding-top: 8px; color: #ff6363; font-size: 18px;">
                        <option value="">请选择{$config['shops']}</option>
                        {loop $config['options'] $row}
                        <option value="{$row}" {if $row==$member['option']}selected="selected"{/if}>{$row}</option>
                        {/loop}
                    </select>
                    </li>
                    {/if}
                {else}
                <input  type="hidden" name="shoptitle" value="默认" id="shoptitle">
                {/if}
            {/if}
            <li style="">
                <input placeholder="请输入姓名" type="text" name="regname_order" id="regname_order" value="{$_G['member']['username']}">
            </li>
            <li style="">
                <input placeholder="请填写手机号码" type="tel" name="username_order" id="username_order" value="{$_G['member']['mobile']}">
            </li>


            {if $config['shopstype'] > 0 }
            <li {if empty($config['shops'])}style="display: none;"{/if}>
                <input placeholder="{$config['shops']}必填" type="{php echo $config['shopstype']==2?'tel':'text';}" name="shoptitle" value="{$member['option']}" id="shoptitle">
            </li>
            {/if}
            {if $config['datetimetype'] > 0 }
                <li {if empty($config['datetime'])}style="display: none;"{/if}>
                    <input placeholder="{$config['datetime']}必填" type="{php echo $config['datetimetype']==2?'tel':'text';}" name="date_order" value="{$member['datetime']}" id="date_order">
                </li>
            {else}
                <li {if empty($config['datetime'])}style="display: none;"{/if}>
                    <input class="weui-input" placeholder="{$config['datetime']}" type="text" onfocus="(this.type='date')" value="{$member['datetime']}" name="date_order" id="date_order"/>
                </li>
            {/if}

        </ul>
        {if empty($config['xieyi'])}
        {if !empty($config['jmcontent'])}
        <div class="content color_guize" style="padding: 0.6rem 0 0.8rem 0;">
            <a class="refriendnum auth" href="javascript:;"></a> 我已阅读 <a href="javascript:;" onclick="show_guize()">加盟规则</a> 并同意参与
        </div>
        {/if}
        {else}
        <div class="content color_guize" style="padding: 0.6rem 0 0.8rem 0;">
            <a class="refriendnum auth" href="javascript:;"></a> {$config['xieyi']}
        </div>
        {/if}
        <div class="content color_button">
            <!-- <a href="javascript:;" onclick="gotomakeorder(1)" id="show_pay_type_1" style="display: none;">点击支付100元听课金</a> -->
            <a href="javascript:;" id="show_pay_type_2" >{$jmzhifuwenzi}</a>
        </div>
    </div>
</div>

<style type="text/css">
    .show_citymore label input[type="radio"]:checked + i {
        color: {$config['formcolorlefttext']};
        background: {$config['formcolorhead']};
        border: 1px solid {$config['formcolorhead']};
    }
    .show_citywrap dl dt {
        padding: 4px;
        font-size: 16px;
        font-weight: 600;
        background: {$config['formcolorhead']};
        color: {$config['formcolorlefttext']};
    }
    .show_citymore label.order_pay i {
        border: 1px dashed #ccc;
        background: {$config['formcolorcenter']};
        color: {$config['formcolorcentertext']};
    }
</style>
<div class="content show_allcity" style="display: none;">
    <em style="z-index: 106" class="close_father_wrap"></em>
    <div class="show_citywrap" style="height: 100%; ">
       <dl class="content"  style="padding-bottom: 62px;">
        {loop $shenglist $shengindex $sheng}
            <dt class="content">{$sheng['areaName']}</dt>
            <dd class="content">
                {loop $sheng['shilist'] $shiindex $shi}
                <a href="javascript:;">
                    <span>{$shi['areaName']}</span>
                    <!--显示这个城市下面的区县-->
                    <ul class="show_citymore" style="display: none; height: 98%;">
                        <em style="z-index: 108" class="close_father"></em>
                        <p class="content" style="text-align: center; font-size: 14px;"><b style="color: {$config['formcolorcenter']};">*{$config['jmlocktext']}</b></p>
                        <div class="content city_sec">
                            {loop $shi['xianlist'] $xian}
                            {if $xian['recordid']==0}
                                 <label for="cityid_{$xian['areaId']}" class="content " >
                                    <input type="radio" name="topaycityid" id="cityid_{$xian['areaId']}" value="{$xian['areaId']}">
                                    <i>{$xian['areaName']}</i>
                                </label>
                            {else}
                                 <label class="content order_pay">
                                    <i>{$xian['areaName']}</i>
                                </label>
                            {/if}
                            {/loop}
                        </div>
                        <p class="content" style="width: 100%; height: 100px;"></p>
                    </ul>
                </a>
                {/loop}
            </dd>
        {/loop}
        </dl>
    </div>
</div>

<!--弹出确认城市-->
<div class="color_city_bg" style="display: none;" onclick="close_makesity()"></div>
<div class="color_city_main" style="display: none;">
    <p class="content">您当前选择的区域是：<span id="get_showinfo1">青岛市</span></p>
        <p class="content">
    {if !empty($config['jmcityimg'])}<img src="{$config['jmcityimg']}" alt="" class="lazy">{else}<br>{/if}</p>
    
    <p class="content">
        <a href="javascript:;" onclick="show_info(0)" id="show_type_0" style="display: none;">填写信息立即加盟</a>
        <a href="javascript:;" onclick="show_info(1)" id="show_type_1" style="display: none;">填写信息立即加盟</a>
        <a href="javascript:;" onclick="show_info(2)" id="show_type_2" style="display: none;">填写信息立即加盟</a>
        <a href="javascript:;" onclick="show_info(3)" id="show_type_3" style="display: none;">填写信息立即加盟</a>
        <a href="javascript:;" onclick="show_info(4)" id="show_type_4" style="display: none;">填写信息立即加盟</a>
    </p>
</div>


<!--弹出规则-->
<div class="youhui_dizhi">
    <div class="dizhi_sroll">
        <div class="content dizhi_tittle">加盟规则</div>
        <ul class="content">
            <li>
            {$config['jmcontent']}
            </li>
        </ul>
    </div>
    <a class="cupon_close" href="javascript:;" onclick="close_guize()"><img src="{$_G['URL']['JIAMENG_CSS']}img/icon16.png" alt=""></a>
</div>

<!--弹出错误提示-->
<div class="show_erromonry">
    
</div>




<script type="text/javascript" src="{$_G['URL']['JIAMENG_CSS']}js/jquery.min.js"></script>
<script type="text/javascript" src="{$_G['URL']['JIAMENG_CSS']}js/jweixin-1.0.0.js"></script>
<!-- <script type="text/javascript" src="{$_G['URL']['JIAMENG_CSS']}js/wow.min.js"></script> -->
<!-- <script type="text/javascript" src="{$_G['URL']['JIAMENG_CSS']}js/swiper.min.js"></script> -->
<script type="text/javascript" src="{$_G['URL']['JIAMENG_CSS']}js/packageshop.js"></script>



{if $config['isdanmu']==1}
{include file='danmu/danmu02'}
{include file='danmu/danmu01'}
{elseif $config['isdanmu']==2}
<style type="text/css">
  .danmu {position: fixed;}
</style>
{include file='danmu/danmu02'}
{/if}

<link rel="stylesheet" type="text/css" href="{$_G['URL']['APP_CSS']}mobile_music.css">
<div id="audio_btn" class="">
    <div id="yinfu" class="rotate"></div>
</div>
<script type="text/javascript">
var num = -1;
var desc = "";

var video = $("<audio loop='loop'></audio>").appendTo('body');

video.attr('src',"{php echo tomedia($config['musicsrc']);}");

video.attr('id','bgaudio');
//创建临时使用的a标签
var tmpA = tmpA || $("<a href='#'></a>").appendTo('body');
//给标签绑定事件,在标签中播放视频
tmpA.unbind('bind').bind('click',function (e) {
    e.preventDefault();
//  通过先暂停，再播放的方式实现在ios中自动播放的效果
    video[0].play();
    video[0].pause();
    video[0].play();
}).click();

$(function(){
  $("#audio_btn").click(function(){
    if ($(this).hasClass('off')) {
      video[0].play();
      $(this).removeClass('off');
      $("#yinfu").addClass("rotate");
    } else {
      video[0].pause();
      $(this).addClass('off');
      $("#yinfu").removeClass("rotate");
    };
  })
});
document.addEventListener("WeixinJSBridgeReady", function () {
        document.getElementById('bgaudio').play();
}, false);
</script>

<style type="text/css">
#mcover5 {position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.7); display: none; z-index: 100002; }
#mcover5 img {position: fixed; right: 18px; top: 5px; width: 260px !important; height: 180px !important; z-index: 100002; }
</style>
<div id="mcover5" onclick="document.getElementById('mcover5').style.display='';">
<img src="{php echo $_G['URL']['APP_IMAGE']."fenxiao07.png";}" /></div>
<script type="text/javascript">
$(function(){
  $(".letgo1").click(function(event) {
    $("#mcover5").show();
    return false;
  });
})
</script>
{if $config['isicon']>0}
<style type="text/css">
#mcover1 {position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.7); display: none; z-index: 100002; }
#mcover1 img {position: fixed; right: 18px; top: 5px; width: 260px !important; height: 180px !important; z-index: 100002; }
</style>
<div id="mcover1" onclick="document.getElementById('mcover1').style.display='';">
<img src="{if empty($config['sharetip'])}{$_G['URL']['APP_IMAGE']}guide_fudai.png{else}{php echo tomedia($config['sharetip']);}{/if}" /></div>
<script type="text/javascript">
$(function(){
  $(".letgo").click(function(event) {
    $("#mcover1").show();
    return false;
  });
})
</script>
{/if}
{if $config['iscomm']==1}
{if ($system['fenxiao01'] >0 || $system['fenxiao04'] ==1 || $system['fenxiao05'] ==1  || $system['fenxiao07'] ==1 || $system['fenxiao08'] ==1)}
<style type="text/css">
#mcover2 {position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.7); display: none; z-index: 100002; }
#mcover2 img {position: fixed; right: 18px; top: 5px; width: 260px !important; height: 180px !important; z-index: 100002; }
</style>
<div id="mcover2" onclick="document.getElementById('mcover2').style.display='';">
<img src="{$fenxiaotip}" /></div>
<script type="text/javascript">
$(function(){
  $(".letgofenxiao").click(function(event) {
    $("#mcover2").show();
    return false;
  });
})
</script>
{/if}
{/if} 

<script type="text/javascript">

function play_vedio(v_id){
        //$(this).hide();
        $("#show_vedio_bg").hide();
        $("#show_bedio").css('display', 'block');
        document.getElementById("show_bedio_" + v_id).play();


}

$(function(){ 
    var $this = $("#get_clone"); 
    var scrollTimer = setInterval(function(){ 
        scrollNews( $this ); 
    }, 1500 );
}); 
function scrollNews(obj){ 
    var $self = obj; 
    var lineHeight = 63;
    var new_group = $("#get_clone li");

    $self.animate({ "margin-top" : -lineHeight +"px" },800 , function(){ 
        $self.css({"margin-top":"0px"});
        $self.find(new_group[0]).appendTo($self);
    });
};
</script>
<script>
var set_time = false;
function show_erro(erro_info){
    if(set_time){
        return false;
    }
    set_time = true;
    $(".show_erromonry").html(erro_info);
    $(".show_erromonry").show();
    setTimeout('$(".show_erromonry").fadeOut()', 3000);
    setTimeout('set_time = false', 3100);
}

var is_show = false;
var is_click = false;
function show_navi() {
    if(is_click){
        return true;
    }
    console.log(is_click);
    is_click = true;
    if (is_show) {
        close_navi();
    } else {
        $(".color_navi").animate({bottom: '3.625rem', opacity: 1}, 800);
        setTimeout(function(){is_show = true;is_click = false;},810);
    }
}
function close_navi() {
    if (!is_show) {
        return false;
    }
    is_show = true;
    $(".color_navi").animate({bottom: '-20.5rem', opacity: 0}, 800);
    setTimeout(function(){is_show = false;is_click = false;},810);
    
}

var go_top = 0;
function goto_navi(navi_id) {
    switch (navi_id) {
        case 1:
            $('html,body').animate({scrollTop: 0}, 800)
            break;
        case 2:
            go_top = $(".goto_2").offset().top;
            $('html,body').animate({scrollTop: go_top}, 800);
            break;
        case 3:
            go_top = $(".goto_3").offset().top;
            $('html,body').animate({scrollTop: go_top}, 800);
            break;
        case 4:
            go_top = $(".goto_4").offset().top;
            $('html,body').animate({scrollTop: go_top}, 800);
            break;
        case 5:
            go_top = $(".goto_5").offset().top;
            $('html,body').animate({scrollTop: go_top}, 800);
            break;
        case 6:
            go_top = $(".goto_6").offset().top;
            $('html,body').animate({scrollTop: go_top}, 800);
            break;
        case 7:
            go_top = $(".goto_7").offset().top;
            $('html,body').animate({scrollTop: go_top}, 800);
            break;
    };
    close_navi();
}

var read_ok = 0;
$('.refriendnum').click(function(){
    if ($(this).hasClass('read_ok')) {
        read_ok = 0;
        $(this).removeClass('read_ok');
        return false;
    } else {
        $(this).addClass('read_ok');
        read_ok = 1;
        return false;
    }
})

function show_guize() {
    $(".youhui_dizhi").animate({right: 0, opacity: 1}, 800);

}
function close_guize() {
    $(".youhui_dizhi").animate({right: '-100%', opacity: 0}, 800);
}

function close_login() {
    $(".color_login_bg").hide();
    $(".color_login_main").hide();
}

function close_makesity() {
    $(".color_city_bg").hide();
    $(".color_city_main").hide();
    $("#get_cityname").text('')
}
</script>


<script type="text/javascript">

var s_city = '';
$(".show_citymore label").click(function() {
    if ($(this).hasClass('order_pay')) {
        show_erro("该城市已被独家");
        return false;
    } else if($(this).hasClass('deposit_pay')) {
        show_erro("该城市已被预定");
        return false;
    } else {
        $(".color_city_bg").show();
        $(".color_city_main").show();

        $("#get_showinfo1").text('');
        var s_city = $(this).find('i').text();

        var s_text = '￥100';
        var s_value = $(this).find('input').val();

        $("#get_showinfo1").text(s_city);
    }
});



$(".close_father").click(function() {
    $(this).parent().hide();
    $(".color_city_bg").hide();
    $(".color_city_main").hide();
    $(".close_father_wrap").show();
    $(".show_citymore input").removeAttr('checked');
    $(".show_citywrap").addClass('add_touch');
    $(".show_citywrap").removeClass('remove_touch');
    $(".show_citymore").addClass('remove_touch');
    $(".show_citymore").removeClass('add_touch');
});
$(".show_citywrap dl dd a span").click(function() {
    $(this).parent().find('ul').show();
    $(".close_father_wrap").hide();
    $(".show_citywrap").addClass('remove_touch');
    $(".show_citywrap").removeClass('add_touch');
    $(".show_citymore").addClass('add_touch');
    $(".show_citymore").removeClass('remove_touch');
});
$(".close_father_wrap").click(function() {
    $(this).parent().hide();
});

function show_kefu() {
    $(".base_tcdiv_mobile2").show();
    $(".show_kefu").show();
};
$(".base_tcdiv_mobile2").click(function() {
    $(".base_tcdiv_mobile2").hide();
    $(".show_kefu").hide();
});

</script>
<script type="text/javascript">
var doingmakepackorder=false;
function gotomakeorder(paytype){
    var packid = '4866';
    var paystoreid = $('input[name="topaycityid"]:checked').val() ;
    {if !empty($config['xieyi'])}
        if(read_ok == 0){
            show_erro("请{$config['xieyi']}");
            return false;
        }
    {elseif !empty($config['jmcontent']) }
        if(read_ok == 0){
            show_erro("请您阅读加盟规则，并同意参与");
            return false;
        }
    {/if}

    if($('#addr').val().length < 1){
        show_erro("请填写影楼名称");
        return false;
    }
    if(paytype > 1 && (paystoreid < 1 || paystoreid == undefined)){
        show_erro("请选择未抢定的城市");
        return false;
    }

    if(doingmakepackorder){
        return false;
    }
    doingmakepackorder = true;
    
    if(paytype == 1){
        var payurl = 'packageact';
    }else{
        var payurl = 'activitypackageshare';
    }
    $.post('/' + payurl + '/domakepackorder', {
        packid : packid,
        paystoreid : paystoreid,
        paytype : paytype,
        username : $('#username_order').val(),
        regname : $('#regname_order').val(),
        addr : $('#addr').val(),
        pagetype : 'actpackageshare'}, function(data){
        eval('data='+data);
        doingmakepackorder = false;
        if(data.status=='success'){
            top.location.href = data.mess;
        }else{
            show_erro(data.mess);
            return false;
        }
    });
}
function showdopay(ptype){
    if(ptype == 0){
        $("#show_type_0").show();
        $("#show_type_1").hide();
        $("#show_type_2").hide();
        $("#show_type_3").hide();
        $("#show_type_4").hide();
    }else if(ptype == 1){
        $("#show_type_0").hide();
        $("#show_type_1").show();
        $("#show_type_2").hide();
        $("#show_type_3").hide();
        $("#show_type_4").hide();
    }else if(ptype == 2){
        $("#show_type_0").hide();
        $("#show_type_1").hide();
        $("#show_type_2").show();
        $("#show_type_3").hide();
        $("#show_type_4").hide();
    }else if(ptype == 3){
        $("#show_type_0").hide();
        $("#show_type_1").hide();
        $("#show_type_2").hide();
        $("#show_type_3").show();
        $("#show_type_4").hide();
    }else if(ptype == 4){
        $("#show_type_0").hide();
        $("#show_type_1").hide();
        $("#show_type_2").hide();
        $("#show_type_3").hide();
        $("#show_type_4").show();
    }
    $(".show_allcity").show();
};

function show_info(keyid){
    
    if(keyid == 3){
        $("#check_type_1").attr('checked', '');
        $("#check_type_1").prop('checked', false);
        $("#check_type_2").attr('checked', '');
        $("#check_type_2").prop('checked', false);
        $("#check_type_4").attr('checked', '');
        $("#check_type_4").prop('checked', false);
        $("#check_type_3").attr('checked', 'checked');
        $("#check_type_3").prop('checked', true);
        $(".levelgroup_register").show();
        document.getElementById('show_pay_type_2').innerText = '{$jmzhifuwenzi2}';
    }else if(keyid == 1){

        $("#check_type_2").attr('checked', '');
        $("#check_type_2").prop('checked', false);
        $("#check_type_3").attr('checked', '');
        $("#check_type_3").prop('checked', false);
        $("#check_type_4").attr('checked', '');
        $("#check_type_4").prop('checked', false);
        $("#check_type_1").attr('checked', 'checked');
        $("#check_type_1").prop('checked', true);
        document.getElementById('show_pay_type_2').innerText = '{$jmzhifuwenzi}';
        $(".levelgroup_register").show();
    }else if(keyid == 4){

        $("#check_type_2").attr('checked', '');
        $("#check_type_2").prop('checked', false);
        $("#check_type_3").attr('checked', '');
        $("#check_type_3").prop('checked', false);
        $("#check_type_1").attr('checked', '');
        $("#check_type_1").prop('checked', false);
        $("#check_type_4").attr('checked', 'checked');
        $("#check_type_4").prop('checked', true);
        $(".levelgroup_register").show();
    }else if(keyid == 2){
        $("#check_type_1").attr('checked', '');
        $("#check_type_1").prop('checked', false);
        $("#check_type_3").attr('checked', '');
        $("#check_type_3").prop('checked', false);
        $("#check_type_4").attr('checked', '');
        $("#check_type_4").prop('checked', false);
        $("#check_type_2").attr('checked', 'checked');
        $("#check_type_2").prop('checked', true);
    }else{
        $("#level0").hide();
    }
    $(".color_login_bg").show();
    $(".color_login_main").show();
}


var paytype = 0;
function showdologin(ptype){

if(ptype == 0){
    $("#show_pay_type_0").show();
    $("#show_pay_type_1").hide();
    $("#show_pay_type_2").hide();
    $("#show_pay_type_3").hide();
    $("#show_pay_type_4").hide();
}else if(ptype == 1){
    $("#show_pay_type_0").hide();
    $("#show_pay_type_1").show();
    $("#show_pay_type_2").hide();
    $("#show_pay_type_3").hide();
    $("#show_pay_type_4").hide();
}else if(ptype == 2){
    $("#show_pay_type_0").hide();
    $("#show_pay_type_1").hide();
    $("#show_pay_type_2").show();
    $("#show_pay_type_3").hide();
    $("#show_pay_type_4").hide();
}else if(ptype == 3){
    $("#show_pay_type_0").hide();
    $("#show_pay_type_1").hide();
    $("#show_pay_type_2").hide();
    $("#show_pay_type_3").show();
    $("#show_pay_type_4").hide();
}else if(ptype == 4){
    $("#show_pay_type_0").hide();
    $("#show_pay_type_1").hide();
    $("#show_pay_type_2").hide();
    $("#show_pay_type_3").hide();
    $("#show_pay_type_4").show();
}

    $(".color_login_bg").show();
    $(".color_login_main").show();

// 支付类型， 订金/全款
    paytype = ptype;
};

function closelogin_pay(){
    $(".show_allcity").hide();
}

</script>

{include file='base/tips'}
{include file='base/kefu'}
{include file='jiameng/wxpay'}



{include file='jiameng/kefutubiao'}

{include file='yxpdd/foot'}

{include file='base/sharepyq'}
